<html>
<head>
<script src="GoogleCodeWikiParser.js" type="text/javascript"></script>
<script src="jquery.min.js" type="text/javascript"></script>
</head>
<body>
<p>This is just a test.</p>
<!-- This one doesn't work
<script>
_appendText=function(text2append){
  var d=document.createElement("div");
  d.innerHTML=text2append;
  document.body.appendChild(d);
}

_postwiki=function(data)
{
_appendText(data);
}

var url="http://code.google.com/p/asstermo/wiki/SobreAsstermo?show=content";
_appendText(url);

$.ajax({
  url: url,
  success: _postwiki
});
</script>-->

<script>
_appendText=function(text2append){
  var d=document.createElement("div");
  d.innerHTML=text2append;
  document.body.appendChild(d);
}

_postwiki=function(data)
{
var g = new GoogleCodeWikiParser();
g.options.disableWarnings=true;
g.options.wikiBaseURL="http://code.google.com/p/asstermo/wiki/";
var html = g.parse( data );
_appendText(html);
}

var url="http://"+document.location.hostname+"/hg/SobreAsstermo.wiki";
_appendText(url);

//alert(window.location);
//gadgets.window.adjustHeight(); //doesn't work...

$.ajax({
  url: url,
  success: _postwiki
});
</script>
</body>
</html>